import Vue from "vue";
import VueRouter from "vue-router";
// import Home from "../views/Home.vue";

import homepage from "../views/homepage.vue";
// import qq from "../views/qq.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "homepage",
    component: homepage
  },
  {
    path: "/qq",
    name: "qq",
    component: () => import(/* webpackChunkName: "about" */ "../views/qq.vue")
  },
  {
    path: "/skrollr",
    name: "skrollr",
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/skrollr.vue")
  }
];

const router = new VueRouter({
  // mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;
